package com.sayimo.maker.user.dao.impl;

import org.springframework.stereotype.Repository;

import com.sayimo.framework.database.mybatis.AbstractMybatisBaseDao;
import com.sayimo.framework.exception.DaoException;
import com.sayimo.maker.user.dao.MemberActiveInterfaceDao;
import com.sayimo.maker.user.vo.MemberActive;


/** 
  * @project schoolmallapi
  * @package com.sayimo.maker.user.dao.impl
  * @className MemberActiveInterfaceImplDao
  * @author chenpy
  * @Title:  
  * @Description: 
  * @date 2016年4月20日
  */ 
@Repository(value="activeInterfaceImplDao")
public class MemberActiveInterfaceImplDao  extends AbstractMybatisBaseDao<MemberActive> implements MemberActiveInterfaceDao{

	public MemberActive selectByCustomerId(Integer customerId) throws DaoException {
		return mybatisInterfaceBaseDao.get("com.sayimo.maker.user.dao.MemberActiveInterfaceDao.selectByCustomerId", customerId);
	}

	public int insertMemberActive(MemberActive active) throws DaoException {
		return mybatisInterfaceBaseDao.insert("com.sayimo.maker.user.dao.MemberActiveInterfaceDao.insertMemberActive", active);
	}

	public int updateMemberActive(MemberActive active) throws DaoException {
		return mybatisInterfaceBaseDao.update("com.sayimo.maker.user.dao.MemberActiveInterfaceDao.updateMemberActive", active);
	}
}
